home *** CD-ROM | disk | FTP | other *** search
- <refentry id="libgimp-gimpui" revision="19 Jan 2001">
- <refmeta>
- <refentrytitle>gimpui</refentrytitle>
- <manvolnum>3</manvolnum>
- <refmiscinfo>LIBGIMP Library</refmiscinfo>
- </refmeta>
-
- <refnamediv>
- <refname>gimpui</refname><refpurpose>Common user interface functions. This header includes all other GIMP User
- Interface Library headers.</refpurpose>
- </refnamediv>
-
- <refsynopsisdiv><title>Synopsis</title>
- <synopsis>
-
-
-
- void <link linkend="gimp-ui-init">gimp_ui_init</link> (const <link linkend="gchar">gchar</link> *prog_name,
- <link linkend="gboolean">gboolean</link> preview);
- </synopsis>
- </refsynopsisdiv>
-
-
-
-
-
- <refsect1>
- <title>Description</title>
- <para>
- Common user interface functions. This header includes all other GIMP User
- Interface Library headers.
-
- </para>
- </refsect1>
-
- <refsect1>
- <title>Details</title>
- <refsect2>
- <title><anchor id="gimp-ui-init">gimp_ui_init ()</title>
- <programlisting>void gimp_ui_init (const <link linkend="gchar">gchar</link> *prog_name,
- <link linkend="gboolean">gboolean</link> preview);</programlisting>
- <para>
- This function initializes GTK+ with <link linkend="gtk-init">gtk_init</link>(), instructs GDK not to
- use X shared memory if The GIMP was invoked with the --no-xshm command
- line option and initializes GDK's image rendering subsystem (GdkRGB) to
- follow the GIMP main program's colormap allocation/installation policy.
- </para>
- <para>
- The GIMP's colormap policy can be determinded by the user with the
- gimprc variables <parameter>min_colors</parameter> and <parameter>install_cmap</parameter>.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>prog_name</parameter> :</entry>
- <entry> The name of the plug-in which will be passed as argv[0] to
- <link linkend="gtk-init">gtk_init</link>(). It's a convention to use the name of the
- executable and _not_ the PDB procedure name or something.
- </entry></row>
- <row><entry align="right"><parameter>preview</parameter> :</entry>
- <entry> <link linkend="TRUE-CAPS">TRUE</link> if the plug-in has some kind of preview in it's UI.
- Note that passing <link linkend="TRUE-CAPS">TRUE</link> is recommended also if one of the
- used GIMP Library widgets contains a preview (like the image
- menu returned by <link linkend="gimp-image-menu-new">gimp_image_menu_new</link>()).
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
-
- </refsect1>
-
-
-
- <refsect1>
- <title>See Also</title>
- <para>
- <link linkend="gtk-init">gtk_init</link>(), <link linkend="gdk-set-use-xshm">gdk_set_use_xshm</link>(), <link linkend="gdk-rgb-set-min-colors">gdk_rgb_set_min_colors</link>(),
- <link linkend="gdk-rgb-set-install">gdk_rgb_set_install</link>(), <link linkend="gdk-rgb-get-visual">gdk_rgb_get_visual</link>(), <link linkend="gdk-rgb-get-cmap">gdk_rgb_get_cmap</link>(),
- <link linkend="gtk-widget-set-default-visual">gtk_widget_set_default_visual</link>(), <link linkend="gtk-widget-set-default-colormap">gtk_widget_set_default_colormap</link>(),
- <link linkend="gtk-preview-set-gamma">gtk_preview_set_gamma</link>().
- </para>
- </refsect1>
-
- </refentry>
-